package com.zmzncs.lmtc.module.customer.pojo.cust_ticket;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author 任建波
 * @since 2020-10-13
 */
@Data

public class CustTicketShopSelectForm implements Serializable {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "会员名称、手机号")
    private String record;

    @ApiModelProperty(value = "商家名称、券类名称")
    private String shopRecord;

    @ApiModelProperty(value = "使用状态（0：未用 1：已用 2：已过期）")
    private Integer status;

    @ApiModelProperty(value = "领取开始时间")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone="GMT+8")
    private Date beginTime;

    @ApiModelProperty(value = "领取结束时间")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone="GMT+8")
    private Date endTime;

    @ApiModelProperty(value = "页码")
    private Integer currentPage = 1;

    @ApiModelProperty(value = "每页记录数")
    private Integer pageSize = 10;

    public Page getPage() {
        return new Page(currentPage, pageSize);
    }

}
